package com.google.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;

@EnableDiscoveryClient//远程调用
@SpringBootApplication
@MapperScan("com.google.product.dao")
@EnableEurekaClient
//@EnableFeignClients
@EnableCircuitBreaker//降级
@EnableHystrixDashboard
//@FeignClient(value = "SEARCH",fallbackFactory = ProductClientFallBack.class)
@ServletComponentScan("com.google.product.servlet")
public class Qf51StoreProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(Qf51StoreProductApplication.class, args);
    }

}
